package com.centerm.bluetooth.lklcommon;

/**
 * Created by linwenhui on 2017/5/12.
 */

public final class Command {
    private Command() {
    }

    // 磁条卡类
    public static final byte[] TRACK_OPEN_CARD = new byte[]{(byte) 0xD1, 0x21};// 开启读卡器
    public static final String TRACK_OPEN_CARD_STRING = "D121";
    public static final byte[] READ_TRACK_DATA = new byte[]{(byte) 0xD1,0x22};// 读磁条卡
    public static final String READ_TRACK_DATA_STRING = "D122";
    public static final byte[] TRACK_OPEN_CARD_SAFE = new byte[]{(byte) 0xD1,0x23};// 开启读卡器 -增强安全指令
    public static final String TRACK_OPEN_CARD_SAFE_STRING = "D123";
    public static final byte[] READ_TRACK_DATA_SAFE = new byte[]{(byte) 0xD1,0x24};// 读磁条卡 -增强安全指令
    public static final String READ_TRACK_DATA_SAFE_STRING = "D124";

    // 密码键盘类
    public static final byte[] INPUT_PIN = new byte[]{0x1A,0x21};// 密码输入
    public static final String INPUT_PIN_STRING = "1A21";
    public static final byte[] INPUT_PIN_SAFE = new byte[]{0x1A,0x22};// 密码输入 -增强安全指令
    public static final String INPUT_PIN_SAFE_STRING = "1A22";

    // PCOB类
    public static final byte[] PBOC = new byte[]{0x1C,0x05};// PBOC 执行标准流程
    public static final String PBOC_STRING = "1C05";
    public static final byte[] QPBOC = new byte[]{0x1C,0x08};// QPBOC 执行标准流程
    public static final String QPBOC_STRING = "1C08";
    public static final byte[] END_PBOC = new byte[]{0x1C,0x07};// PBOC流程结束
    public static final String END_PBOC_STRING = "1C07";

    // 终端管理类
    public static final byte[] RESET = new byte[]{0x1D,0x08};//取消/复位操作
    public static final String RESET_STRING = "1D08";

}
